﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using DormMS.Model.Enum;

namespace DormMS.Model
{
    //OrderDetail
    public class OrderDetail
    {
        /// <summary>
        /// Id
        /// </summary>
        public int Id { get; set; }
        private DateTime addTime = DateTime.Now;
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get { return addTime; } set { addTime = value; } }
        private bool isDeleted = false;
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get { return isDeleted; } set { isDeleted = value; } }
        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNo { get; set; }
        /// <summary>
        /// 商品Id
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 产品SKU
        /// </summary>
        public string ProductSku { get; set; }
        /// <summary>
        /// 产品描述
        /// </summary>
        public string ProductDesc { get; set; }
        /// <summary>
        /// 产品价格
        /// </summary>
        public decimal ProductPrice { get; set; }
        /// <summary>
        /// 市场价
        /// </summary>
        public decimal MarketPrice { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int ProductCount { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 规格ID
        /// </summary>
        public int SpecId { get; set; }
        /// <summary>
        /// 规格KEY
        /// </summary>
        public string SpecKey { get; set; }
        /// <summary>
        /// 规格名称
        /// </summary>
        public string SpecName { get; set; }
        /// <summary>
        /// 产品图片
        /// </summary>
        public string ImgUrl { get; set; }
        /// <summary>
        /// 购买赠送积分
        /// </summary>
        public int Points { get; set; }
        /// <summary>
        /// 发货状态 0未发货，1已发货，2已换货，3已退货,确认收货 = 4
        /// </summary>
        public OrderDetailSendStatus SendStatus { get; set; }
        /// <summary>
        /// 发货单Id
        /// </summary>
        public int? DeliveryId { get; set; }
        /// <summary>
        /// 会员折扣价
        /// </summary>
        public decimal DiscountPrice { get; set; }

        /// <summary>
        /// 会员折扣率
        /// </summary>
        public int Discount { get; set; }

        /// <summary>
        /// 成本价
        /// </summary>
        public decimal CostPrice { get; set; }

    }
}

